package lab02.Test37;

/**
 * Created by 李晓容 on 2017/12/31.
 */
public class Undergraduate extends Student{
    public void getAverage(int chinese, int math, int english) {
        int average = (chinese + math + english) / 3;
        if (average > 60) {
            System.out.println("拿到学位.");
        } else {
            System.out.println("不能拿到学位.");
        }
    }
}
